package ch18;

import org.junit.Test;

/**
 * Created by 春旺 on 2017/11/3.
 */
public class LinkedMaxHeapTest {


    public static void main(String[] args) {
        LinkedMaxHeap heap = new LinkedMaxHeap(8);
        heap.add(12);
        heap.add(118);
        heap.add(798989);
        heap.add(12);
        heap.add(48);
        System.out.println("应该为：798989");
       System.out.println("运行结果为：" + heap.getMax());
       LinkedMaxHeap heap1 = new LinkedMaxHeap("a");
       heap1.add("b");
       heap1.add("c");
       heap1.add("d");
       heap1.add("D");
        System.out.println("应该为：d");
       System.out.println("运行结果为：" +heap1.getMax());
    }

}
